from math import cos, sin, pi
from scipy.integrate import quad

def func(x):
    return 2 * cos(x) +sin(x) -1

if __name__ == '__main__':
    solution = quad(func, 0, pi/2)
    print(solution)


